package com.vcms.view.simulation.uicomponent.listener;

import java.awt.Button;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.vcms.controller.system.SimulationController;

public class ActivateCustomerPanelButtonListener implements ActionListener {
	private SimulationController ctrl;

	public ActivateCustomerPanelButtonListener(SimulationController ct) {
		ctrl = ct;
	}

	public void actionPerformed(ActionEvent e) {
		ctrl.setupCustomer((char)Integer.parseInt(((Button) e.getSource()).getActionCommand()));
	}

}
